package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Food;
import com.itheima.pojo.Sports;

import java.util.List;

/**
 * @author Administrator
 */
public interface SportsService {
    /**
     * 添加运动项
     * @param sports 前台上传后，遍历出的sports对象集合
     */
    public void upload(List<Sports> sports);

    public PageResult findPage(QueryPageBean queryPageBean);

    public Sports findById(Integer id);

    public void add(Sports sports);

    public void edit(Sports sports);

    public void delete(Integer id);
}
